<template>
    <div>
        hello
    </div>
</template>

<script>
import moment from "moment";


export default {   
    data(){
        return{
            
        }
    },
    created(){
        this.now_time()
    },
    methods:{
        now_time(){
            var time=new Date()
            console.log(moment(time).format('YYYY-MM-DD HH:mm:ss'));
        }
    }
}
</script>